const express = require('express')
const taskController = require('../controllers/taskController')

const router = express.Router()

router.get('/getByUserId', taskController.getTaskByUserId)

router.get('/getTaskModel', taskController.getTaskModel)

router.post('/handOut', taskController.handOutTask)

router.post('/add', taskController.addNewTask)

router.get('/status', taskController.updateTask)

router.get('/delete', taskController.deleteTaskById)

router.post('/taskModel/add', taskController.addNewTaskModel)

router.get('/taskModel/del', taskController.delTaskModel)

router.post('/note/add', taskController.addNewNote)

router.get('/note/getByUserId', taskController.getNoteByUserId)

module.exports = router
